package com.xxx.service;

import com.xxx.entity.Resource;

import java.util.List;
import java.util.Set;

/**
 * resource service 接口
 */
public interface ResourceService {

	public Resource createResource(Resource resource);

	public Resource updateResource(Resource resource);

	public void deleteResource(Long resourceId);

	Resource findOne(Long resourceId);

	List<Resource> findAll();

	Set<String> findPermissions(Set<Long> resourceIds);

	List<Resource> findMenus(Set<String> permissions);
}
